import upload from '@/utils/upload'
import request from '@/utils/request'

// 文件上传
export function uploadFile(data) {
  return upload({
    url: '/mobile/system/upload',
    name: 'file',
    filePath: data.filePath,
    formData: data.formData
  })
}

// 获取文件信息
export function getFileInfo(id) {
  return request({
    url: `/mobile/system/query/file/${id}`,
    method: 'get'
  })
}
